using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter14
{
	/// <summary>
	/// Example02: The Car Lift
	/// In a car lift used in a service station, compressed air 
	/// exerts a force on a small piston that has a circular cross 
	/// section and a radius of 5.00 cm . This pressure is 
	/// transmitted by a liquid to a piston that has a radius 
	/// of 15.0 cm. What force must the compressed air exert 
	/// to lift a car weighing 13300 N? What air pressure produces 
	/// this force?
	/// F_1 = 1.48 \times 10^3 N
	/// P = 1.88 \times 10^5 Pa
	/// </summary>
	public class Example02
	{
		public Example02()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.AreaVector A = new L.AreaVector();
			A.Z = Math.PI*0.15*0.15;
			L.Force F = new L.Force();
			F.Z = -13300;
			L.Pressure P = new L.Pressure(F,A);
			result += Convert.ToString(P.Pa)+"\r\n";
			result += Convert.ToString(P.Pa*0.05*0.05*Math.PI);
		}
	}
}
